<ul class="media-list">
    {% for l in list %}
        <li class="media">
            <hr/>
            <a class="pull-left" href="#">
                {% for key,value in upList.items %}
                    {% ifequal key l.user.id %}
                        <img src="{{ url }}media{{ value }}" class="avatar">
                    {% endifequal %}
                {% endfor %}
            </a>

            <div class="media-body">
                <div class="media-heading"><a href="#">{{ l.user.username }}</a><span
                        class="timeago">{{ l.date|timesince }}</span></div>
                {{ l.content }}
            </div>
        </li>
    {% endfor %}
</ul>
<input type="hidden" value="{{ page }}" id="page">